#include <stdio.h>

int main( )
{
    int n;
    while ( scanf("%d", &n) != EOF )
    {
        int a, b, c, d, count = 0;
        for ( a = 0; a <= n / 5; a++ )
            for ( b = 0; b <= ( n - a * 5 ) / 10; b++ )
                for ( c = 0; c <= ( n - a * 5 - b * 10 ) / 25; c++ )
                    for ( d = 0; d <= ( n - a * 5 - b * 10 - c * 25 ) / 50; d++ )
                    {
                        if ( n - ( a * 5 + b * 10 + c * 25 + d * 50 ) + a + b + c + d <= 100 )
                            count++;
                    }
        printf("%d\n", count);
    }
    return 0;
}
